package com.jianglin.service;

import com.github.pagehelper.PageInfo;
import com.jianglin.entity.HouseHoldInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface HouseHoldInfoService {
    @Transactional(readOnly = true)
    PageInfo<HouseHoldInfo> findAllHouseHoldInfos(String householdName, int page, int limit);

    int saveHouseHoldInfo(HouseHoldInfo houseHoldInfo);

    int updateHouseHoldInfo(HouseHoldInfo houseHoldInfo);

    int delHouseHoldInfoById(int id);

    int delHouseHoldInfoByIds(List<Integer> ids);
}
